package cn.laixue.dao;

import cn.laixue.page.Page;
import cn.laixue.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
//查询所有
    public List<User> getUserList();
//根据id查询
    public User findById(Integer id);
//根据名字查询
    public List<User> findByName(String user_Name);
    public List<User> findByName2(String user_Name);
    public List<User> findByName3(String user_Name);
//根据名字和性别查询
    public List<User> findByNameAndBySex(User user);
//分页查询1
    public List<User> selectPage(Page page);
//分页查询2
    public List<User> selectPage2(Map map);

//添加
    public int add(User user);
//修改
    public int upDate(User user);
//删除
    public int delete(Integer id);






}
